using Microsoft.EntityFrameworkCore;
using MVCDemo.Models;

namespace MVCDemo.Db
{
    public class SoftDb:DbContext
    {
        private readonly string _context="uid=sa;pwd=123456;database=SoftDb;server=.;";
        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            builder.UseSqlServer(_context);
        }
        public DbSet<Category> categorys{get;set;}
        public DbSet<Product> products{get;set;}
    }
}